package com.isunland.managesystem.entity;

import com.isunland.managesystem.base.BaseModel;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;

public class PlanDetail extends BaseModel {
  private String workTime;
  private String planAppKind;

  private String id;  //id
  private String excManName;  //执行人姓名
  private String planContentDesc;  //委派任务内容
  private String planExcDesc;  //委派任务完成情况
  private String planStagecompleteTime;  //最新阶段完成时间
  private String planEsteTime;     //委派任务计划完成时间
  private String rateCurrent;  //任务完成度
  private String planStatus;  //计划状态
  private String excManId;  //执行人工号
  private String regStaffName;
  private String regDate;
  private String regStaffId;
  private String taskManName;
  private String planKindName;
  private String coopManNames;
  private String resultDescEvalu;//评价内容
  private String resultScore;//评分
  private String ifEnd;
  private String planKindTypeCode;
  private String evaStatus;

  private Map<String, Object> adddelegateProperties = new HashMap<String, Object>();
  /**
   * planHours : 0.0
   * planKindType : 周计划
   */

  private String planHours;
  private String planKindType;

  //构造器
  public PlanDetail() {
    super();
  }

  public PlanDetail(String id, String excManName, String planContentDesc, String planExcDesc,
      String planStagecompleteTime, String planEsteTime, String rateCurrent, String planStatus,
      String excManId, String regStaffName, String regDate) {
    this.id = id;
    this.excManName = excManName;
    this.planContentDesc = planContentDesc;
    this.planExcDesc = planExcDesc;
    this.planStagecompleteTime = planStagecompleteTime;
    this.planEsteTime = planEsteTime;
    this.rateCurrent = rateCurrent;
    this.planStatus = planStatus;
    this.excManId = excManId;
    this.regStaffName = regStaffName;
    this.regDate = regDate;
  }

  public String getEvaStatus() {
    return evaStatus;
  }

  public void setEvaStatus(String evaStatus) {
    this.evaStatus = evaStatus;
  }

  public String getPlanKindTypeCode() {
    return planKindTypeCode;
  }

  public void setPlanKindTypeCode(String planKindTypeCode) {
    this.planKindTypeCode = planKindTypeCode;
  }

  public String getIfEnd() {
    return ifEnd;
  }

  public void setIfEnd(String ifEnd) {
    this.ifEnd = ifEnd;
  }

  //get和set方法

  public String getWorkTime() {
    return workTime;
  }

  public void setWorkTime(String workTime) {
    this.workTime = workTime;
  }

  public String getPlanAppKind() {
    return planAppKind;
  }

  public void setPlanAppKind(String planAppKind) {
    this.planAppKind = planAppKind;
  }

  public String getRegStaffId() {
    return regStaffId;
  }

  public void setRegStaffId(String regStaffId) {
    this.regStaffId = regStaffId;
  }

  public String getTaskManName() {
    return taskManName;
  }

  public void setTaskManName(String taskManName) {
    this.taskManName = taskManName;
  }

  public String getPlanKindName() {
    return planKindName;
  }

  public void setPlanKindName(String planKindName) {
    this.planKindName = planKindName;
  }

  public String getCoopManNames() {
    return coopManNames;
  }

  public void setCoopManNames(String coopManNames) {
    this.coopManNames = coopManNames;
  }

  public String getResultDescEvalu() {
    return resultDescEvalu;
  }

  public void setResultDescEvalu(String resultDescEvalu) {
    this.resultDescEvalu = resultDescEvalu;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getExcManName() {
    return excManName;
  }

  public void setExcManName(String excManName) {
    this.excManName = excManName;
  }

  public String getPlanContentDesc() {
    return planContentDesc;
  }

  public void setPlanContentDesc(String planContentDesc) {
    this.planContentDesc = planContentDesc;
  }

  public String getPlanExcDesc() {
    return planExcDesc;
  }

  public void setPlanExcDesc(String planExcDesc) {
    this.planExcDesc = planExcDesc;
  }

  public String getPlanStagecompleteTime() {
    return planStagecompleteTime;
  }

  public void setPlanStagecompleteTime(String planStagecompleteTime) {
    this.planStagecompleteTime = planStagecompleteTime;
  }

  public String getPlanEsteTime() {
    return planEsteTime;
  }

  public void setPlanEsteTime(String planEsteTime) {
    this.planEsteTime = planEsteTime;
  }

  public String getRateCurrent() {
    return rateCurrent;
  }

  public void setRateCurrent(String rateCurrent) {
    this.rateCurrent = rateCurrent;
  }

  public String getPlanStatus() {
    return planStatus;
  }

  public void setPlanStatus(String planStatus) {
    this.planStatus = planStatus;
  }

  public Map<String, Object> getAdddelegateProperties() {
    return this.adddelegateProperties;
  }

  public void setAdddelegateProperty(String name, Object value) {
    this.adddelegateProperties.put(name, value);
  }

  public String getExcManId() {
    return excManId;
  }

  public void setExcManId(String excManId) {
    this.excManId = excManId;
  }

  public String getRegStaffName() {
    return regStaffName;
  }

  public void setRegStaffName(String regStaffName) {
    this.regStaffName = regStaffName;
  }

  public String getRegDate() {
    return regDate;
  }

  public void setRegDate(String regDate) {
    this.regDate = regDate;
  }

  public String getPlanHours() {
    return planHours;
  }

  public void setPlanHours(String planHours) {
    this.planHours = planHours;
  }

  public String getPlanKindType() {
    return planKindType;
  }

  public void setPlanKindType(String planKindType) {
    this.planKindType = planKindType;
  }

  public String getResultScore() {
    return resultScore;
  }

  public void setResultScore(String resultScore) {
    this.resultScore = resultScore;
  }
  //@Override
  //public boolean equals(Object o) {
  //    if (!(o instanceof PlanDetail)) return false;
  //    return this.excManName.equals(((PlanDetail) o).excManName);
  //
  //}
  //
  //@Override
  //public int hashCode() {
  //    return this.excManName.hashCode();
  //}

  public class MyComparator implements Comparator<PlanDetail> {

    @Override public int compare(PlanDetail o1, PlanDetail o2) {
      return o1.getExcManName().compareTo(o2.getExcManName());
    }
  }
}
